package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;

    private Integer gameId;

    private String companionGame;

    private String playDuration;

    private Date playTime;

    private String orderNumber;

    private BigDecimal cost;

    private BigDecimal totalAmount;

    private String paymentMethod;

    private String paymentStatus;

    private Date createdAt;

    private Integer status;

    private Integer userId;

    private Integer pid;

    private String img;


    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;


    @TableField(exist = false)
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @TableField(exist = false)
    private String image;




    private static final long serialVersionUID = 1L;

}
